1. /* sdmcpydb.cpp by K.Tsuru */
  2. // function ID = 301 DRADIX, BRADIX
  3. /*********************************************
  4. SDouble and SDecimal classes
  5. It provides the copy function.
  6. The types of "a" and "*this" may be different.
  7. **********************************************/
  8. #ifndef SN_H
  9. #include "sn.h"
  10. #endif
  11. void SDouble::CopyDouble(const SDouble& a, int cs){
  12. if( this == &a ) return; //step for a = a
  13. if( (cs == SUBS) && !a.Sign() ){ //for substitution operator
  14. SetZero(); return; //including the case that non-zero part of "a" is outside
  15. }
  16. SNumber::CopyValue(a, cs);
  17. SetRdxExp(a.rdxExp);
  18. if( (Type() == REAL) && figure(0) ){ //first position !=0
  19. ShiftArray(1); SetRdxExp(rdxExp+1);
  20. }
  21. }

sdmcpydb.cpp : last modifiled at 2017/07/17 14:52:20(728 bytes)
created at 2017/10/07 10:21:15
The creation time of this html file is 2017/10/07 10:30:03 (Sat Oct 07 10:30:03 2017).